Cognitoware.Robotics.dll
Class IndependentPairDistribution<A, B>
A: The type of the first distribution.
B: The type of the second distribution.
Summary
Creates a joint distribution from two independent distributions.
Constructor Summary
Creates a new distribution from two other distributions.
Method Summary
AliasAs()
Inherited from Cognitoware.Mathematics.Probability.RandomDistribution
Equals(Object)
Inherited from System.Object
Finalize()
Inherited from System.Object
GetEntropy(IEnumerable<Pair<A>>)
Inherited from Cognitoware.Mathematics.Probability.RandomDistribution
GetHashCode()
Inherited from System.Object
GetType()
Inherited from System.Object
MemberwiseClone()
Inherited from System.Object
Returns the probability of A and B.
Not implemented in IndependentPairDistribution.
ToString()
Inherited from System.Object
Details
Creates a distribution P(A,B) from P(A) and P(B).
P(A) and P(B) must be independent since P(A,B) = P(A) * P(B).
Constructor Details
public IndependentPairDistribution(RandomDistribution<A> a, RandomDistribution<B> b)
Creates a new distribution from two other distributions.
Parameters:
a
- The first disribution.
b
- The second distribution.
Method Details
public override Double ProbabilityOf(Pair<A> t)
Returns the probability of A and B by calculating P(A) * P(B).
Parameters:
t
- The pair that contains the values of A and B.
Returns:
Returns the probability P(A,B).
public override Pair<A> Sample(Random select)
This implementation throws NotImplementedException.